FROM node:4.1.2

RUN mkdir /code && mkdir /code/app

ADD ./app/ /code/app/
ADD ./.bowerrc /code/
ADD ./*.json /code/
ADD ./gulpfile.js /code/




RUN cd /code && \
    npm install -g cnpm --registry=https://registry.npm.taobao.org && \
    cnpm install bower -g && \
    bower install && \
    cnpm install

EXPOSE 3000

WORKDIR /code
CMD npm start
  
